package com.cby.android.base.capture

import android.content.res.Resources

/**
 * @description: ScreenUtils
 * @author: ChenBaoYang
 * @createDate: 2022/7/21 10:27 上午
 */
object ScreenUtils{
    fun getScreenWidth(): Int {
        return Resources.getSystem().displayMetrics.widthPixels
    }

    fun getScreenHeight(): Int {
        return Resources.getSystem().displayMetrics.heightPixels
    }

    fun getScreenDensityDpi(): Int {
        return Resources.getSystem().displayMetrics.densityDpi
    }
}